package com.lipi.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lipi.common.utils.PageUtils;
import com.lipi.mall.product.entity.BrandEntity;
import com.lipi.mall.product.entity.CategoryBrandRelationEntity;
import com.lipi.mall.product.entity.CategoryEntity;
import com.lipi.mall.product.vo.BrandVO;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author hecy
 * @email kuanih200@163.com
 * @date 2021-06-14 16:02:24
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 传入品牌id和分类id,填充品牌名和分类名并保存
     *
     * @param categoryBrandRelation
     */
    void saveFull(CategoryBrandRelationEntity categoryBrandRelation);


    void updateBrand(Long brandId, String name);

    void updateCategory(Long categoryId, String name);

    List<BrandEntity> getBrandCatId(Long catId);
}

